package com.spa.application.command.shop;

import com.spa.application.command.common.rule.RuleAddCommand;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class MassagistAddCommand {

    private Long shopId;

    @NotBlank(message = "姓名必填")
    private String name;

    @NotBlank(message = "手机号必填")
    private String phone;

    @NotBlank(message = "工作照必填")
    private String workPhoto;

    @NotBlank(message = "生活照必填")
    private String lifePhoto;

    @NotBlank(message = "从业时长必填")
    private String lengthOfEmployment;

    @NotNull(message = "规则必填")
    private List<Long> serviceList;

    @NotBlank(message = "简介必填")
    private String introduce;

    @NotBlank(message = "身份证反面必填")
    private String idCardTails;

    @NotBlank(message = "身份证正面必填")
    private String idCardFront;

    private String lon;

    private String lat;

    @NotNull(message = "类型必填")
    private Integer type;

    @NotNull(message = "技师类型必填")
    private Integer tag;

    @NotNull(message = "规则必填")
    @Valid
    private List<RuleAddCommand> ruleParamList;

}
